package com.app.implementation.service;

import com.app.model.Interventions;
import com.app.interfaces.interfaceDAO;
import com.app.interfaces.interfaceService;
import java.util.List;

/**
 *
 * @author Krachleur
 */
public class InterventionServiceImpl implements interfaceService{
private interfaceDAO intervDao;
    public void save(Object inst) {
        Interventions interv = (Interventions)inst;
        intervDao.save(interv);
    }

    public void modify(Object inst) {
        Interventions interv = (Interventions)inst;
        intervDao.modify(interv);
    }

    public void delete(Object inst) {
        Interventions interv = (Interventions)inst;
        intervDao.delete(interv);
    }

    public List findAll() {
        return intervDao.findAll();
    }

    public interfaceDAO getIntervDao() {
        return intervDao;
    }

    public void setIntervDao(interfaceDAO intervDao) {
        this.intervDao = intervDao;
    }


}
